#include "stdafx.h"
#include "CFFByteStreamHandler.h"

HRESULT CFFByteStreamHandler::BeginCreateObject(IMFByteStream* pByteStream,LPCWSTR pwszURL,DWORD dwFlags,IPropertyStore* pProps,IUnknown** ppIUnknownCancelCookie,IMFAsyncCallback* pCallback,IUnknown* punkState)
{
	if (!pThunk)
		return E_UNEXPECTED;
	return pThunk->BeginCreateObject(pByteStream,pwszURL,dwFlags,pProps,ppIUnknownCancelCookie,pCallback,punkState);
}

HRESULT CFFByteStreamHandler::EndCreateObject(IMFAsyncResult* pResult,MF_OBJECT_TYPE* pObjectType,IUnknown** ppObject)
{
	if (!pThunk)
		return E_UNEXPECTED;
	return pThunk->EndCreateObject(pResult,pObjectType,ppObject);
}